package com.start_eternity.oasissafewalk.service;

import com.start_eternity.oasissafewalk.pojo.Order;
import com.start_eternity.oasissafewalk.pojo.PageBean;
import com.start_eternity.oasissafewalk.pojo.Parent;
import com.start_eternity.oasissafewalk.pojo.dto.OrderDTO;

/**
 * author:ZhangT
 * Date:2024 / 03 / 29 / 23:03
 * Description:
 */
public interface OrderService {

    //分页查询
    public PageBean queryPage(int page, int pageSize);

    //添加
    int addOrder(Order order);

    //根据id 来修改
    int changeOrderById(Order order);

    //根据no 来修改
    int changeOrderByNo(Order order);

    //根据orderNo查询订单
    Order queryOrderByNo(String orderNo);

    //根据orderId查询订单
    Order queryOrderById(Integer orderId);

    //根据orderNo 联表查询订单详情
    Order getDetailsByNo(String orderNo);

    //根据orderNo 联表查询订单详情
    Order getParentByNo(String orderNo);

    //DTO
    OrderDTO getOrder(String orderNo);
}
